#include <linux/interrupt.h>

static inline void __deprecated cli(void){
	local_irq_disable();
}

static inline void __deprecated sti(void){
	local_irq_enable();
}

static inline void __deprecated save_flags(unsigned long *x){
	local_save_flags(*x);
}
#define save_flags(x) save_flags(&x)

static inline void __deprecated restore_flags(unsigned long x){
	local_irq_restore(x);
}

static inline void __deprecated save_and_cli(unsigned long *x){
	local_irq_save(*x);
}
#define save_and_cli(x)	save_and_cli(&x)
